<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    *{
      margin: 0;
      padding: 0;
      list-style: none;
    }
    html,body{
      width: 100%;
      height: 100%;
    }
    div{
      width: 100%;
      height: 100%;
    }
    ul{
      width: 100%;
      height: 100%;
    }
    ul li{
      width: 100%;
      height: 100%;
    }
    ol{
      position: fixed;
      top:60px;
      left: 60px;
    }
    ol li{
      width: 50px;
      height: 50px;
      border: 1px solid #000;
      margin-bottom: -1px;
      text-align: center;
      line-height: 50px;
      cursor: pointer;
    }
  </style>
</head>
<body>
  <div class="box">
    <ul>
      <li>男装</li>
      <li>女装</li>
      <li>童装</li>
      <li>老年装</li>
      <li>妈咪装</li>
    </ul>
    <ol>
      <li>男装</li>
      <li>女装</li>
      <li>童装</li>
      <li>老年装</li>
      <li>妈咪装</li>
    </ol>
  </div>
  <script src="../jquery-1.12.4.min.js"></script>
  <script>
    var color = ["pink", "blue", "green", "orange", "purple"];
    $('ol>li').each(function(i,element){
      $(this).css('backgroundColor',color[i]);
      $('ul>li').eq(i).css('backgroundColor',color[i]);
      $(element).click(function(){
        $('html,body').stop().animate({
          scrollTop:$('ul>li').eq($(element).index()).position().top,
        },500)
      })
    })
  </script>
</body>
</html>